#pragma once
#include "_inc.h"
#include <functional>
#include <string>

enum class euiType { jd, gy, sj, yz };
class cGame
{
public:
	static const std::string cFilename;
	static cGame* getInstance();
    int getw() { return _w; }
    int geth() { return _h; }
	int isChatShown() { return _isChatShown; }
	void switchChatShown() { _isChatShown = !_isChatShown; }
	euiType getui() { return _eui; }

	bool load(const std::string& path, const std::string& exe, const std::string& config);

	const std::string& getPath() { return _path; }
	const std::string& getExe() { return _exe; }
	const std::string& getConfig() { return _config; }
// private:
	int _w = 800, _h = 600;
	bool _isChatShown = true;
	euiType _eui = euiType::jd;
	std::string _path, _exe, _config;
};